Skip to content

Feature/interface signaller UI #1076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 143 commits into
base: dev
Choose a base branch
from

Conversation

lukasrad02
Copy link
Collaborator

@lukasrad02 lukasrad02 commented May 20, 2025

This PR adds a new modal that allows interface signallers to interact with the software

PR Checklist

Please make sure to fulfil the following conditions before marking this PR ready for review:

  • If this PR adds or changes features or fixes bugs, this has been added to the changelog
  • If this PR adds new actions or other ways to alter the state, test scenarios have been added.
  • I have the right to license the code submitted with this Pull Request under the mentioned license in the file LICENSE-README.md (i.e., this is my
    own code or code licensed under a license compatible to AGPL v3.0 or later, for exceptions look into LICENSE-README.md) and
    hereby license the code in this Pull Request under it.
    I certify that by signing off my commits (see In case of using third party code, I have given appropriate credit.
    We are using DCO for that, see here for more information.
  • If I have used third party code and I mentioned it in the code, I also updated the inspired-by-or-copied-from-list.html list to include the links.

lukasrad02 added 30 commits May 20, 2025 10:40
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
lukasrad02 added 11 commits June 2, 2025 10:45
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
@lukasrad02 lukasrad02 marked this pull request as ready for review July 9, 2025 11:39
Copy link
Collaborator

@ClFeSc ClFeSc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, my review as far as I've gotten today.

requiredBehaviors: ['transferBehavior'],
errorMessage: 'Dieser Bereich kann keine Fahrzeuge bereitstellen',
},
// TODO: Radio channels
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO for this PR?

errorMessage: 'Dieser Bereich behandelt keine Patienten',
loading$: new BehaviorSubject<boolean>(false),
},
// TODO: Location
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO for this PR? Also for the two TODOs below.

lukasrad02 and others added 11 commits July 15, 2025 20:09
Co-authored-by: Clemens <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
Signed-off-by: Lukas Radermacher <[email protected]>
// Otherwise, it might become 0 in between, if the first action is handled faster than the second one is proposed
// loadingCount has to be fully increased before actually proposing the first action. Otherwise, it could become 0 in between.
// Hence, all actions to be proposed are collected here and proposed in the end.
// const actionProposers: (() => void)[] = [];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line, it seems to be a leftover from before importing ExerciseAction.

)
.map(([id, transferPoint]) => ({
key: id,
name: TransferPoint.getFullName(transferPoint),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would opt for the second option: Returning the internal name only if the transfer point is not in a simulated region. If it is the parenthesis are causing more confusion than relaxing the trainers in the thought of "This is a transfer point, so it has an internal name.", as you're never able to see the transfer point itself, as far as I know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants